package com.api.gbhg.luoao.utils;

import com.api.gbhg.daizhishun.util.ReadProperties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Properties;

public class Const {
    public static String cwry = null;
    public static String ysbzhpr = null;
    public static String ysbzjbr = null;
    public static final Logger LOGGER = LoggerFactory.getLogger("gbhg");

    final static Properties property = new Properties();

    static {
        try {
            ReadProperties readProperties = new ReadProperties();
            cwry = readProperties.getPropValue("gbhg-zpshouquan.properties", "cwry");
            ysbzhpr = readProperties.getPropValue("gbhg-zpshouquan.properties", "ysbzhpr");
            ysbzjbr = readProperties.getPropValue("gbhg-zpshouquan.properties", "ysbzjbr");
            LOGGER.info("Const加载配置文件" + cwry + ysbzhpr + ysbzjbr);
        } catch (Exception e) {
            LOGGER.info(PrintStackTrace.getStackTraceInfo(e));
        }
            /*property.load(new InputStreamReader(Const .class.getResourceAsStream("../conf/gbhg-zpshouquan.properties"), "GBK"));
            cwry = property.getProperty("cwry");
            ysbzhpr= property.getProperty("ysbzhpr");
           ysbzjbr= property.getProperty("ysbzjbr");
            LOGGER.info("Const加载配置文件"+cwry+ ysbzhpr+ysbzjbr);*/
    }

}